<form  method="post" id="cari" action="<?php echo site_url()?>buku/cari" enctype="multipart/form-data">
<label> Judul</label>
<input type="text" name="search" size="20" >
<input type="submit" name="cari" value="Cari">
</form>
<br />
<a href="<?php echo base_url().'buku/add' ?>"><img src="<?php echo base_url().'assets/images/2.png' ?>"  />Tambah</a>
<table width="641" border="0" cellpadding="0" cellspacing="0" class="table">
  <tr>
    <th width="35">No</th>
    <th width="200">Judul Buku</th>
    <th width="129">Pengarang</th>
    <th width="153">Penerbit</th>
    <th width="124">Aksi</th>
  </tr>
  <?php $i=1+$urutan ?>
  <?php foreach ($query as $row) { ?>
  <tr class="<?php if ($i %2 == 0) echo 'zebra'; ?>">
    <td><?php echo $i ?></td>
    <td><?php echo $row['judul'] ?></td>
    <td><?php echo $row['pengarang'] ?></td>
    <td><?php echo $row['nama_penerbit'] ?></td>
    <td><a href="<?php echo base_url().'buku/edit/'.$row['id_buku'] ?>">Edit</a> |
		<a href="<?php echo base_url().'buku/delete/'.$row['id_buku'] ?>">Hapus</a></td>
  </tr>
 <?php $i++;
 }
 ?>
  <tr>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
</table>
<?php echo $this->pagination->create_links(); ?>

